﻿<phone:PhoneApplicationPage 
    x:Class="WP7_HackerTyper.TerminalPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="True"
    >
	<phone:PhoneApplicationPage.Resources>
        <Storyboard x:Name="LoadingStoryboard" RepeatBehavior="Forever" AutoReverse="True">
            <ColorAnimation Duration="0:0:0.1" To="#FF1FFF00" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="ellipse1" d:IsOptimized="True"/>
			<ColorAnimation Duration="0:0:0.3" To="#FF1FFF00" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="ellipse2" d:IsOptimized="True"/>
			<ColorAnimation Duration="0:0:0.5" To="#FF1FFF00" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="ellipse3" d:IsOptimized="True"/>
			<ColorAnimation Duration="0:0:0.7" To="#FF1FFF00" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="ellipse4" d:IsOptimized="True"/>
		</Storyboard>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/images/hacker_bg.png" />
        </Grid.Background>
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <StackPanel>
                <Button Name="btnHack" 
                        Content="Upload your code to victim's pc" 
                        VerticalAlignment="Top"
                        Style="{StaticResource HackerButton}" 
                        Click="btnHack_Click"
                        Visibility="Collapsed"
                        />
                <TextBox Name="txtTerminal"
                         AcceptsReturn="True"
                         VerticalScrollBarVisibility="auto"
                         TextWrapping="Wrap"
                         Width="auto"
                         Height="674"
                         Foreground="Lime"
                         FontFamily="Courier New"
                         VerticalAlignment="Top" Style="{StaticResource HackerTextBox}"
                         KeyDown="txtShell_KeyDown"
                         >
                    <TextBox.Background>
                        <SolidColorBrush Color="#99000000" />
                    </TextBox.Background>
                </TextBox>
            </StackPanel>
            <Grid Name="grdUploading"
                  Background="#DD111111"
                  Margin="35,254,20,355"
                  Visibility="Collapsed"
                  >
                <StackPanel>
                    <TextBlock Text="Uploading your code ..." 
                               Foreground="Lime"
                               FontFamily="Courier New"
                               />
                    <TextBlock Name="lblTarget" 
                               Text="Target IP: {0}" 
                               Foreground="Lime"
                               FontFamily="Courier New"
                               />
                    <StackPanel Orientation="Horizontal"
                                Margin="0 10 0 0">
                        <Ellipse Name="ellipse1"
                                 Fill="#001FFF00" 
                                 Width="30"
                                 Height="30"
                                 Margin="100 0 0 0"
                                 />
                        <Ellipse Name="ellipse2" 
                                 Fill="#001FFF00"
                                 Width="30"
                                 Height="30"
                                 Margin="20 0 0 0"
                                 />
                        <Ellipse Name="ellipse3"
                                 Fill="#001FFF00"
                                 Width="30"
                                 Height="30"
                                 Margin="20 0 0 0"
                                 />
                        <Ellipse Name="ellipse4"
                                 Fill="#001FFF00"
                                 Width="30"
                                 Height="30"
                                 Margin="20 0 0 0"
                                 />
                    </StackPanel>
                    <TextBlock Name="lblResult"
                               Text="[ACCESS GRANTED]"
                               Margin="0 20 0 0"
                               Foreground="Lime"
                               FontSize="40"
                               FontFamily="Courier New"
                               HorizontalAlignment="Center"
                               Visibility="Collapsed"
                               />
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>